package com.heima.model.behavior.pojos;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("comment")
public class CommentDoc {
    //评论ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    //发表评论的用户ID
    private Integer authorId;
    //发表评论的用户名字
    private String authorName;
    //文章ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long entryId;
    //频道ID
    private Integer channelId;
    //类型 0 评论
    private Integer type;
    //评论内容
    private String content;
    //图像-用户图像
    private String image;
    //评论点赞数量
    private Integer likes;
    //回复数量
    private Integer reply;
    private Integer flag;
    private String longitude;
    private String latitude;
    private String address;
    private Integer ord;
    private Date createdTime;
    private Date updatedTime;
    private Integer operation;
}
